//
//  BaseTableViewCell.h
//  JKWDTeacher
//
//  Created by 学大教育 on 2022/1/16.
//

#import <UIKit/UIKit.h>
#import "BaseModel.h"
NS_ASSUME_NONNULL_BEGIN
@protocol CellActionDelegate <NSObject>

@optional
- (void)actionIndexPath:(NSIndexPath *)indexPath infoData:(nullable id)data;

@end

@interface BaseTableViewCell : UITableViewCell
@property (nonatomic, strong) CellModel *model;
@property (nonatomic, weak) id<CellActionDelegate> delegate;
@property (nonatomic, strong) NSIndexPath *indexPath;

+ (BaseTableViewCell *)cellForModel:(CellModel *)model tableView:(UITableView *)tableView;
@end

NS_ASSUME_NONNULL_END
